package com.lixinlei.meetingfilm.backend.common.lombokshow;

import lombok.Cleanup;
import lombok.extern.slf4j.Slf4j;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

@Slf4j
public class Main {

    public static void main(String[] args) throws FileNotFoundException {

        UserModel userModel = new UserModel();
        userModel.setId(1);
        userModel.setUserName("leilei");
        userModel.setPassword("111111");

//        UserModel user = UserModel.builder()
//                .id(2)
//                .userName("huahua")
//                .password("222222")
//                .build();

        log.info("");
        log.error("");

        // 这个不推荐使用
//        @Cleanup FileInputStream fileInputStream = new FileInputStream(new File(""));

    }

}
